package zut.wework.api;

/**
 * @Author: hanyunfei
 * @Description: 企业微信相关API及常量定义
 * @Date: 2017/10/12
 * @Modified By:
 */
public class WorkWXAPI {

    public static String CORPID = "wwe35a821cb91d6024";//企业ID
    public static Integer AGENTID = 1000002; //1000002  花瓣舞者
    public static String ADDRESS_BOOK_SECRET = "MNd5i_13hOosivmBgix7oqEEiM5SFAyWVJfN1nvcogQ"; //通讯录同步

    //校历
    public static final String SC_SECRET= "LwTFP8SrruO6O5MhmTIFqiHvhzuJAG7D3aXYc20YcRs";

    public static String GET_ACCESS_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s";
    public static String GET_USER_OPENID_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=%s&code=%s";
    public static String SEND_MESSAGE_URL = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=%s";
    public static String GET_USER_INFO = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=%s&userid=%s";



    //标签相关
    public static String TAG_CREATE = "https://qyapi.weixin.qq.com/cgi-bin/tag/create?access_token=%s";
    public static String TAG_ADD_USERS_URL = "https://qyapi.weixin.qq.com/cgi-bin/tag/addtagusers?access_token=%s";

    /*
       成员管理
     */
    //获取部门成员
    public static String CONTACTS_SIMPLE_LIST = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=%s&department_id=%s&fetch_child=%s";
    //获取部门成员详情
    public static String CONTACTS_LIST = "https://qyapi.weixin.qq.com/cgi-bin/user/list?access_token=%s&department_id=%s&fetch_child=%s";
    //更新成员
    public static String CONTACTS_UPDATE = "https://qyapi.weixin.qq.com/cgi-bin/user/update?access_token=%s";
    //创建成员
    public static String CONTACTS_CREATE = "https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=%s";
    //读取成员
    public static String CONTACTS_GET = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=%s&userid=%s";
    //删除成员
    public static String CONTACTS_DELETE = "https://qyapi.weixin.qq.com/cgi-bin/user/delete?access_token=%s&userid=%s";



    /*
    部门管理
     */
    //创建部门
    public static String DEPARTMENT_CREATE = "https://qyapi.weixin.qq.com/cgi-bin/department/create?access_token=%s";
    //更新部门
    public static String DEPARTMENT_UPDATE = "https://qyapi.weixin.qq.com/cgi-bin/department/update?access_token=%s";
    //获取部门列表
    public static String DEPARTMENT_LIST = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=%s&id=%s";
    //更新部门
    public static String UPDATE_DEPT = "https://qyapi.weixin.qq.com/cgi-bin/department/update?access_token=%s";
    //删除部门
    public static String DELETE_DEPT = "https://qyapi.weixin.qq.com/cgi-bin/department/delete?access_token=%s&id=%s";
    //获取子部门Id列表
    public static String DELETE_DEPTS = "https://qyapi.weixin.qq.com/cgi-bin/department/simplelist?access_token=%s&id=%s";


}
